import http from "../http";

export const getCustApi=(params={})=>http({
    url:"/client/selectByPage",
    method:"post",
    params
})

export const delCustApi = (params={})=>http({
    url:"/client/delete",
    method:"post",
    params
})
export const InfoExportApi=()=>http({
    url:"/client/export",
    method:"get",
    responseType:"arraybuffer"
})

export const ImportExcelApi=(data={})=>http({
    url:"/client/uploadExecl",
    method:"post",
    data
})

export const SelectCustApi=(params={})=>http({
    url:"/client/selectByNameOrContactpersonOrCreatypersonOrLeaderperson",
    method:"post",
    params
})

export const AddCustApi=(params={})=>http({
    url:"/client/insert",
    method:"post",
    params
})

export const EditCustApi=(params={})=>http({
    url:"/client/update",
    method:"post",
    params
})